package behavioral_pattern.mediator_pattern;

public abstract class Component {
    protected Mediator mediator;
    public void setMediator(Mediator mediator){
        this.mediator = mediator;
    }
    public void change(){
        mediator.componentChanged(this);
    }
    public abstract void update();
}
